package com.inossem.warehousestorage_inossem.bean.allocation;

import com.inossem.warehousestorage_inossem.bean.common.BeanNew;

import java.util.ArrayList;
import java.util.List;

/**
 * TODO
 *
 * @author 詹建宇
 * @time on 2018/4/3 15:56
 * @email jianyu.zhan@inossem.com
 */
public class AllocationInMatsBean extends BeanNew {

    /**
     * body : {"demand_date":"2018-03-25","fty_input_name":"伊泰股份工厂","fty_input_code":"2000","allocate_code":"7000200036","location_input_name":"红庆河中心供应站","applicant":"佳佳","allocate_delivery_code":"","location_input_code":"0049","allocate_delivery_id":"","stock_output_code":"3200000003","item_list":[{"name_zh":"米","stock_input_rid":1,"fty_input_name":"伊泰股份工厂","fty_id":7,"location_input_name":"红庆河中心供应站","delivery_item_id":0,"stock_position_list":[{"area_code":"","area_id":0,"area_name":"","batch":1000010150,"batch_spec_code":"","create_time":"2018-03-28","create_user":"","input_date":"","is_delete":0,"item_position_id":2,"modify_time":"2018-03-28","modify_user":"","package_code":"","package_id":0,"pallet_id":0,"position_code":"","position_id":0,"qty":10,"remark":"","sn_code":"","sn_id":0,"sn_list":[],"spec_stock":"","spec_stock_code":"","spec_stock_name":"","stock_id":9151,"stock_output_code":"3200000003","stock_output_id":3,"stock_output_position_id":1,"stock_output_rid":1,"stock_qty":10,"stock_sn_id":0,"wh_code":"0000","wh_id":0,"wh_name":"默认仓库"}],"location_id":28,"allocate_item_id":1,"mat_code":"60000650","mat_id":2307,"allocate_id":1,"unit_code":"M","unit_id":92,"fty_output":7,"stock_output_rid":1,"stock_input_id":8,"stock_output_id":3,"fty_output_name":"伊泰股份工厂","location_output":27,"mat_name":"普通钢丝绳/6*37-Φ15/FC","qty":5,"allocate_rid":1,"location_output_name":"塔拉壕中心供应站","decimal_place":2,"status":20}],"delivery_info":{"is_show":0},"allocate_id":1,"org_name":"煤炭生产事业部"}
     */

    private MatsBodyBean body;

    public MatsBodyBean getBody() {
        return body;
    }

    public void setBody(MatsBodyBean body) {
        this.body = body;
    }

    public static class MatsBodyBean {
        /**
         * demand_date : 2018-03-25
         * fty_input_name : 伊泰股份工厂
         * fty_input_code : 2000
         * allocate_code : 7000200036
         * location_input_name : 红庆河中心供应站
         * applicant : 佳佳
         * allocate_delivery_code :
         * location_input_code : 0049
         * allocate_delivery_id :
         * stock_output_code : 3200000003
         * item_list : [{"name_zh":"米","stock_input_rid":1,"fty_input_name":"伊泰股份工厂","fty_id":7,"location_input_name":"红庆河中心供应站","delivery_item_id":0,"stock_position_list":[{"area_code":"","area_id":0,"area_name":"","batch":1000010150,"batch_spec_code":"","create_time":"2018-03-28","create_user":"","input_date":"","is_delete":0,"item_position_id":2,"modify_time":"2018-03-28","modify_user":"","package_code":"","package_id":0,"pallet_id":0,"position_code":"","position_id":0,"qty":10,"remark":"","sn_code":"","sn_id":0,"sn_list":[],"spec_stock":"","spec_stock_code":"","spec_stock_name":"","stock_id":9151,"stock_output_code":"3200000003","stock_output_id":3,"stock_output_position_id":1,"stock_output_rid":1,"stock_qty":10,"stock_sn_id":0,"wh_code":"0000","wh_id":0,"wh_name":"默认仓库"}],"location_id":28,"allocate_item_id":1,"mat_code":"60000650","mat_id":2307,"allocate_id":1,"unit_code":"M","unit_id":92,"fty_output":7,"stock_output_rid":1,"stock_input_id":8,"stock_output_id":3,"fty_output_name":"伊泰股份工厂","location_output":27,"mat_name":"普通钢丝绳/6*37-Φ15/FC","qty":5,"allocate_rid":1,"location_output_name":"塔拉壕中心供应站","decimal_place":2,"status":20}]
         * delivery_info : {"is_show":0}
         * allocate_id : 1
         * org_name : 煤炭生产事业部
         */

        private String demand_date;
        private String fty_input_name;
        private String fty_input_code;
        private String allocate_code;
        private String location_input_name;
        private String applicant;
        private String allocate_delivery_code;
        private String location_input_code;
        private String allocate_delivery_id;
        private String stock_output_code;
        private DeliveryInfoBean delivery_info;
        private String allocate_id;
        private String org_name;
        private List<ItemListBean> item_list;
        private String location_output_name;

        public String getLocation_output_name() {
            return location_output_name;
        }

        public void setLocation_output_name(String location_output_name) {
            this.location_output_name = location_output_name;
        }

        public String getDemand_date() {
            return demand_date;
        }

        public void setDemand_date(String demand_date) {
            this.demand_date = demand_date;
        }

        public String getFty_input_name() {
            return fty_input_name;
        }

        public void setFty_input_name(String fty_input_name) {
            this.fty_input_name = fty_input_name;
        }

        public String getFty_input_code() {
            return fty_input_code;
        }

        public void setFty_input_code(String fty_input_code) {
            this.fty_input_code = fty_input_code;
        }

        public String getAllocate_code() {
            return allocate_code;
        }

        public void setAllocate_code(String allocate_code) {
            this.allocate_code = allocate_code;
        }

        public String getLocation_input_name() {
            return location_input_name;
        }

        public void setLocation_input_name(String location_input_name) {
            this.location_input_name = location_input_name;
        }

        public String getApplicant() {
            return applicant;
        }

        public void setApplicant(String applicant) {
            this.applicant = applicant;
        }

        public String getAllocate_delivery_code() {
            return allocate_delivery_code;
        }

        public void setAllocate_delivery_code(String allocate_delivery_code) {
            this.allocate_delivery_code = allocate_delivery_code;
        }

        public String getLocation_input_code() {
            return location_input_code;
        }

        public void setLocation_input_code(String location_input_code) {
            this.location_input_code = location_input_code;
        }

        public String getAllocate_delivery_id() {
            return allocate_delivery_id;
        }

        public void setAllocate_delivery_id(String allocate_delivery_id) {
            this.allocate_delivery_id = allocate_delivery_id;
        }

        public String getStock_output_code() {
            return stock_output_code;
        }

        public void setStock_output_code(String stock_output_code) {
            this.stock_output_code = stock_output_code;
        }

        public DeliveryInfoBean getDelivery_info() {
            return delivery_info;
        }

        public void setDelivery_info(DeliveryInfoBean delivery_info) {
            this.delivery_info = delivery_info;
        }

        public String getAllocate_id() {
            return allocate_id;
        }

        public void setAllocate_id(String allocate_id) {
            this.allocate_id = allocate_id;
        }

        public String getOrg_name() {
            return org_name;
        }

        public void setOrg_name(String org_name) {
            this.org_name = org_name;
        }

        public List<ItemListBean> getItem_list() {
            return item_list;
        }

        public void setItem_list(List<ItemListBean> item_list) {
            this.item_list = item_list;
        }

        public static class DeliveryInfoBean {
            /**
             * is_show : 0
             */

            private String is_show;

            public String getIs_show() {
                return is_show;
            }

            public void setIs_show(String is_show) {
                this.is_show = is_show;
            }
        }

        //物料列表
        public static class ItemListBean {
            /**
             * name_zh : 米
             * stock_input_rid : 1
             * fty_input_name : 伊泰股份工厂
             * fty_id : 7
             * location_input_name : 红庆河中心供应站
             * delivery_item_id : 0
             * stock_position_list : [{"area_code":"","area_id":0,"area_name":"","batch":1000010150,"batch_spec_code":"","create_time":"2018-03-28","create_user":"","input_date":"","is_delete":0,"item_position_id":2,"modify_time":"2018-03-28","modify_user":"","package_code":"","package_id":0,"pallet_id":0,"position_code":"","position_id":0,"qty":10,"remark":"","sn_code":"","sn_id":0,"sn_list":[],"spec_stock":"","spec_stock_code":"","spec_stock_name":"","stock_id":9151,"stock_output_code":"3200000003","stock_output_id":3,"stock_output_position_id":1,"stock_output_rid":1,"stock_qty":10,"stock_sn_id":0,"wh_code":"0000","wh_id":0,"wh_name":"默认仓库"}]
             * location_id : 28
             * allocate_item_id : 1
             * mat_code : 60000650
             * mat_id : 2307
             * allocate_id : 1
             * unit_code : M
             * unit_id : 92
             * fty_output : 7
             * stock_output_rid : 1
             * stock_input_id : 8
             * stock_output_id : 3
             * fty_output_name : 伊泰股份工厂
             * location_output : 27
             * mat_name : 普通钢丝绳/6*37-Φ15/FC
             * qty : 5
             * allocate_rid : 1
             * location_output_name : 塔拉壕中心供应站
             * decimal_place : 2
             * status : 20
             */

            private String name_zh;
            private String stock_input_rid;
            private String fty_input_name;
            private String fty_id;
            private String location_input_name;
            private String delivery_item_id;
            private String location_id;
            private String allocate_item_id;
            private String mat_code;
            private String mat_id;
            private String allocate_id;
            private String unit_code;
            private String unit_id;
            private String fty_output;
            private String stock_output_rid;
            private String stock_input_id;
            private String stock_output_id;
            private String fty_output_name;
            private String location_output;
            private String mat_name;
            private String qty;
            private String allocate_rid;
            private String location_output_name;
            private String decimal_place;
            private String status;
            private List<StockPositionListBean> stock_position_list;
            private String mat_store_type;//1批次 2序列号
            private List<SN> sn_List;//默认仓位下 序列号列表
            private String isOk;//该物料是否完成入库 ""或null-->未完成 1-->完成
            private String outNum;//出库
            private String inNum;//入库

            public String getOutNum() {
                return outNum;
            }

            public void setOutNum(String outNum) {
                this.outNum = outNum;
            }

            public String getInNum() {
                return inNum;
            }

            public void setInNum(String inNum) {
                this.inNum = inNum;
            }

            public String getIsOk() {
                return isOk;
            }

            public void setIsOk(String isOk) {
                this.isOk = isOk;
            }

            public List<SN> getSn_List() {
                if (sn_List == null) {
                    return new ArrayList<>();
                } else {
                    return sn_List;
                }
            }

            public void setSn_List(List<SN> sn_List) {
                this.sn_List = sn_List;
            }

            public String getMat_store_type() {
                return mat_store_type;
            }

            public void setMat_store_type(String mat_store_type) {
                this.mat_store_type = mat_store_type;
            }

            public String getName_zh() {
                return name_zh;
            }

            public void setName_zh(String name_zh) {
                this.name_zh = name_zh;
            }

            public String getStock_input_rid() {
                return stock_input_rid;
            }

            public void setStock_input_rid(String stock_input_rid) {
                this.stock_input_rid = stock_input_rid;
            }

            public String getFty_input_name() {
                return fty_input_name;
            }

            public void setFty_input_name(String fty_input_name) {
                this.fty_input_name = fty_input_name;
            }

            public String getFty_id() {
                return fty_id;
            }

            public void setFty_id(String fty_id) {
                this.fty_id = fty_id;
            }

            public String getLocation_input_name() {
                return location_input_name;
            }

            public void setLocation_input_name(String location_input_name) {
                this.location_input_name = location_input_name;
            }

            public String getDelivery_item_id() {
                return delivery_item_id;
            }

            public void setDelivery_item_id(String delivery_item_id) {
                this.delivery_item_id = delivery_item_id;
            }

            public String getLocation_id() {
                return location_id;
            }

            public void setLocation_id(String location_id) {
                this.location_id = location_id;
            }

            public String getAllocate_item_id() {
                return allocate_item_id;
            }

            public void setAllocate_item_id(String allocate_item_id) {
                this.allocate_item_id = allocate_item_id;
            }

            public String getMat_code() {
                return mat_code;
            }

            public void setMat_code(String mat_code) {
                this.mat_code = mat_code;
            }

            public String getMat_id() {
                return mat_id;
            }

            public void setMat_id(String mat_id) {
                this.mat_id = mat_id;
            }

            public String getAllocate_id() {
                return allocate_id;
            }

            public void setAllocate_id(String allocate_id) {
                this.allocate_id = allocate_id;
            }

            public String getUnit_code() {
                return unit_code;
            }

            public void setUnit_code(String unit_code) {
                this.unit_code = unit_code;
            }

            public String getUnit_id() {
                return unit_id;
            }

            public void setUnit_id(String unit_id) {
                this.unit_id = unit_id;
            }

            public String getFty_output() {
                return fty_output;
            }

            public void setFty_output(String fty_output) {
                this.fty_output = fty_output;
            }

            public String getStock_output_rid() {
                return stock_output_rid;
            }

            public void setStock_output_rid(String stock_output_rid) {
                this.stock_output_rid = stock_output_rid;
            }

            public String getStock_input_id() {
                return stock_input_id;
            }

            public void setStock_input_id(String stock_input_id) {
                this.stock_input_id = stock_input_id;
            }

            public String getStock_output_id() {
                return stock_output_id;
            }

            public void setStock_output_id(String stock_output_id) {
                this.stock_output_id = stock_output_id;
            }

            public String getFty_output_name() {
                return fty_output_name;
            }

            public void setFty_output_name(String fty_output_name) {
                this.fty_output_name = fty_output_name;
            }

            public String getLocation_output() {
                return location_output;
            }

            public void setLocation_output(String location_output) {
                this.location_output = location_output;
            }

            public String getMat_name() {
                return mat_name;
            }

            public void setMat_name(String mat_name) {
                this.mat_name = mat_name;
            }

            public String getQty() {
                return qty;
            }

            public void setQty(String qty) {
                this.qty = qty;
            }

            public String getAllocate_rid() {
                return allocate_rid;
            }

            public void setAllocate_rid(String allocate_rid) {
                this.allocate_rid = allocate_rid;
            }

            public String getLocation_output_name() {
                return location_output_name;
            }

            public void setLocation_output_name(String location_output_name) {
                this.location_output_name = location_output_name;
            }

            public String getDecimal_place() {
                return decimal_place;
            }

            public void setDecimal_place(String decimal_place) {
                this.decimal_place = decimal_place;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public List<StockPositionListBean> getStock_position_list() {
                return stock_position_list;
            }

            public void setStock_position_list(List<StockPositionListBean> stock_position_list) {
                this.stock_position_list = stock_position_list;
            }

            //仓位 批次 序列号
            public static class StockPositionListBean {
                /**
                 * area_code :
                 * area_id : 0
                 * area_name :
                 * batch : 1000010150
                 * batch_spec_code :
                 * create_time : 2018-03-28
                 * create_user :
                 * input_date :
                 * is_delete : 0
                 * item_position_id : 2
                 * modify_time : 2018-03-28
                 * modify_user :
                 * package_code :
                 * package_id : 0
                 * pallet_id : 0
                 * position_code :
                 * position_id : 0
                 * qty : 10
                 * remark :
                 * sn_code :
                 * sn_id : 0
                 * sn_list : []
                 * spec_stock :
                 * spec_stock_code :
                 * spec_stock_name :
                 * stock_id : 9151
                 * stock_output_code : 3200000003
                 * stock_output_id : 3
                 * stock_output_position_id : 1
                 * stock_output_rid : 1
                 * stock_qty : 10
                 * stock_sn_id : 0
                 * wh_code : 0000
                 * wh_id : 0
                 * wh_name : 默认仓库
                 */

                private String area_code;
                private String area_id;
                private String area_name;
                private String batch;
                private String batch_spec_code;
                private String create_time;
                private String create_user;
                private String input_date;
                private String is_delete;
                private String item_position_id;
                private String modify_time;
                private String modify_user;
                private String package_code;
                private String package_id;
                private String pallet_id;
                private String position_code;
                private String position_id;
                private String qty;
                private String remark;
                private String sn_code;
                private String sn_id;
                private String spec_stock;
                private String spec_stock_code;
                private String spec_stock_name;
                private String stock_id;
                private String stock_output_code;
                private String stock_output_id;
                private String stock_output_position_id;
                private String stock_output_rid;
                private String stock_qty;
                private String stock_sn_id;
                private String wh_code;
                private String wh_id;
                private String wh_name;
                private String supplier_batch;
                private String batchOrSnIsOk;//序列号是否确认      空为不确认 1为确认
                private List<Position> positionList;//仓位列表

                public String getSupplier_batch() {
                    return supplier_batch;
                }

                public void setSupplier_batch(String supplier_batch) {
                    this.supplier_batch = supplier_batch;
                }

                public List<Position> getPositionList() {
                    return positionList;
                }

                public void setPositionList(List<Position> positionList) {
                    this.positionList = positionList;
                }

                public static class Position {
                    private String stock_id;
                    private String position_code;
                    private String position_id;
                    private String wh_id;
                    private String area_id;
                    private String number;//本仓位入库数量
                    private int positionViewId;//自定义，存放动态添加的仓位view的id

                    public int getPositionViewId() {
                        return positionViewId;
                    }

                    public void setPositionViewId(int positionViewId) {
                        this.positionViewId = positionViewId;
                    }

                    public String getStock_id() {
                        return stock_id;
                    }

                    public void setStock_id(String stock_id) {
                        this.stock_id = stock_id;
                    }

                    public String getPosition_code() {
                        return position_code;
                    }

                    public void setPosition_code(String position_code) {
                        this.position_code = position_code;
                    }

                    public String getPosition_id() {
                        return position_id;
                    }

                    public void setPosition_id(String position_id) {
                        this.position_id = position_id;
                    }

                    public String getWh_id() {
                        return wh_id;
                    }

                    public void setWh_id(String wh_id) {
                        this.wh_id = wh_id;
                    }

                    public String getArea_id() {
                        return area_id;
                    }

                    public void setArea_id(String area_id) {
                        this.area_id = area_id;
                    }

                    public String getNumber() {
                        return number;
                    }

                    public void setNumber(String number) {
                        this.number = number;
                    }
                }

                public String getBatchOrSnIsOk() {
                    return batchOrSnIsOk;
                }

                public void setBatchOrSnIsOk(String batchOrSnIsOk) {
                    this.batchOrSnIsOk = batchOrSnIsOk;
                }

                public String getArea_code() {
                    return area_code;
                }

                public void setArea_code(String area_code) {
                    this.area_code = area_code;
                }

                public String getArea_id() {
                    return area_id;
                }

                public void setArea_id(String area_id) {
                    this.area_id = area_id;
                }

                public String getArea_name() {
                    return area_name;
                }

                public void setArea_name(String area_name) {
                    this.area_name = area_name;
                }

                public String getBatch() {
                    return batch;
                }

                public void setBatch(String batch) {
                    this.batch = batch;
                }

                public String getBatch_spec_code() {
                    return batch_spec_code;
                }

                public void setBatch_spec_code(String batch_spec_code) {
                    this.batch_spec_code = batch_spec_code;
                }

                public String getCreate_time() {
                    return create_time;
                }

                public void setCreate_time(String create_time) {
                    this.create_time = create_time;
                }

                public String getCreate_user() {
                    return create_user;
                }

                public void setCreate_user(String create_user) {
                    this.create_user = create_user;
                }

                public String getInput_date() {
                    return input_date;
                }

                public void setInput_date(String input_date) {
                    this.input_date = input_date;
                }

                public String getIs_delete() {
                    return is_delete;
                }

                public void setIs_delete(String is_delete) {
                    this.is_delete = is_delete;
                }

                public String getItem_position_id() {
                    return item_position_id;
                }

                public void setItem_position_id(String item_position_id) {
                    this.item_position_id = item_position_id;
                }

                public String getModify_time() {
                    return modify_time;
                }

                public void setModify_time(String modify_time) {
                    this.modify_time = modify_time;
                }

                public String getModify_user() {
                    return modify_user;
                }

                public void setModify_user(String modify_user) {
                    this.modify_user = modify_user;
                }

                public String getPackage_code() {
                    return package_code;
                }

                public void setPackage_code(String package_code) {
                    this.package_code = package_code;
                }

                public String getPackage_id() {
                    return package_id;
                }

                public void setPackage_id(String package_id) {
                    this.package_id = package_id;
                }

                public String getPallet_id() {
                    return pallet_id;
                }

                public void setPallet_id(String pallet_id) {
                    this.pallet_id = pallet_id;
                }

                public String getPosition_code() {
                    return position_code;
                }

                public void setPosition_code(String position_code) {
                    this.position_code = position_code;
                }

                public String getPosition_id() {
                    return position_id;
                }

                public void setPosition_id(String position_id) {
                    this.position_id = position_id;
                }

                public String getQty() {
                    return qty;
                }

                public void setQty(String qty) {
                    this.qty = qty;
                }

                public String getRemark() {
                    return remark;
                }

                public void setRemark(String remark) {
                    this.remark = remark;
                }

                public String getSn_code() {
                    return sn_code;
                }

                public void setSn_code(String sn_code) {
                    this.sn_code = sn_code;
                }

                public String getSn_id() {
                    return sn_id;
                }

                public void setSn_id(String sn_id) {
                    this.sn_id = sn_id;
                }

                public String getSpec_stock() {
                    return spec_stock;
                }

                public void setSpec_stock(String spec_stock) {
                    this.spec_stock = spec_stock;
                }

                public String getSpec_stock_code() {
                    return spec_stock_code;
                }

                public void setSpec_stock_code(String spec_stock_code) {
                    this.spec_stock_code = spec_stock_code;
                }

                public String getSpec_stock_name() {
                    return spec_stock_name;
                }

                public void setSpec_stock_name(String spec_stock_name) {
                    this.spec_stock_name = spec_stock_name;
                }

                public String getStock_id() {
                    return stock_id;
                }

                public void setStock_id(String stock_id) {
                    this.stock_id = stock_id;
                }

                public String getStock_output_code() {
                    return stock_output_code;
                }

                public void setStock_output_code(String stock_output_code) {
                    this.stock_output_code = stock_output_code;
                }

                public String getStock_output_id() {
                    return stock_output_id;
                }

                public void setStock_output_id(String stock_output_id) {
                    this.stock_output_id = stock_output_id;
                }

                public String getStock_output_position_id() {
                    return stock_output_position_id;
                }

                public void setStock_output_position_id(String stock_output_position_id) {
                    this.stock_output_position_id = stock_output_position_id;
                }

                public String getStock_output_rid() {
                    return stock_output_rid;
                }

                public void setStock_output_rid(String stock_output_rid) {
                    this.stock_output_rid = stock_output_rid;
                }

                public String getStock_qty() {
                    return stock_qty;
                }

                public void setStock_qty(String stock_qty) {
                    this.stock_qty = stock_qty;
                }

                public String getStock_sn_id() {
                    return stock_sn_id;
                }

                public void setStock_sn_id(String stock_sn_id) {
                    this.stock_sn_id = stock_sn_id;
                }

                public String getWh_code() {
                    return wh_code;
                }

                public void setWh_code(String wh_code) {
                    this.wh_code = wh_code;
                }

                public String getWh_id() {
                    return wh_id;
                }

                public void setWh_id(String wh_id) {
                    this.wh_id = wh_id;
                }

                public String getWh_name() {
                    return wh_name;
                }

                public void setWh_name(String wh_name) {
                    this.wh_name = wh_name;
                }
            }

            //默认仓位下 序列号列表
            public static class SN {
                private String package_code;
                private String package_id;
                private String sn_code;
                private String sn_id;
                private String stock_id;
                private String position_code;
                private String type;

                public String getPackage_code() {
                    return package_code;
                }

                public void setPackage_code(String package_code) {
                    this.package_code = package_code;
                }

                public String getPackage_id() {
                    return package_id;
                }

                public void setPackage_id(String package_id) {
                    this.package_id = package_id;
                }

                public String getSn_code() {
                    return sn_code;
                }

                public void setSn_code(String sn_code) {
                    this.sn_code = sn_code;
                }

                public String getSn_id() {
                    return sn_id;
                }

                public void setSn_id(String sn_id) {
                    this.sn_id = sn_id;
                }

                public String getStock_id() {
                    return stock_id;
                }

                public void setStock_id(String stock_id) {
                    this.stock_id = stock_id;
                }

                public String getPosition_code() {
                    return position_code;
                }

                public void setPosition_code(String position_code) {
                    this.position_code = position_code;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }
            }
        }
    }
}
